<%@page pageEncoding="utf-8" %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html>
	<head>
	
	<title>供应商报价明细</title>
	
	<link href="../css/style.css" rel="stylesheet" type="text/css" />
	<link href="../css/style_add.css" rel="stylesheet" type="text/css" />
	<link href="css/collcss.css" rel="stylesheet" type="text/css" />
	<link href="css/collcss.css" rel="stylesheet" type="text/css" />
	
	</head>
	
	<body>

<!-- 非招标方式展现的界面 -->
<logic:notEqual value="1" name="suggestmode">
<table style="width:1200px"   id="pricetable"  border="0" cellpadding="0" cellspacing="1" style="border-style:solid;border-width:1px;">	
	<thead>
		<tr class="th_bj" valign='middle'>
			<th style='width:240px' height="28" align="center" class="f-13-ffffff">
											产品/服务名称
			</th>
			
			<th style='width:100px' height="28" colspan="-3" align="center">
					<span class="f-13-ffffff">规格</span>
			</th>
			<th style='width:140px' height="28" colspan="-3" align="center">
					<span class="f-13-ffffff">有关说明</span>
			</th>
			
				<th style='width:100px' align="center" class="f-13-ffffff">
					数量
				</th>
				<th style='width:100px' align="center" class="f-13-ffffff">
					单位
				</th>

				<logic:equal value="1" name="pricemode">
					<th style='width:200px' height="28" align="center">
						<span class="f-13-ffffff">目录单价(元)</span>
					</th>
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">正扣折扣率</span>
					</th>
					<th style='width:200px' height="28" align="center" class="f-13-ffffff">
						折扣后单价(元)
					</th>
					<th style='width:200px' align="center" class="f-13-ffffff">
						折扣后总价(元)
					</th>
					<th style='width:160px' align="center" class="f-13-ffffff">
						生效日期
					</th>
					<th style='width:160px' align="center" class="f-13-ffffff">

						失效日期
					</th>
				</logic:equal>
				
				<logic:equal value="3" name="pricemode">
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">单价(元)</span>
					</th>
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">正扣折扣率</span>
					</th>
					<th style='width:180px' height="28" align="center" class="f-13-ffffff">
						折扣后单价(元)
					</th>
					<th style='width:180px' align="center" class="f-13-ffffff">
						折扣后总价(元)
					</th>
				</logic:equal>
				
				
				<th style='width:160px' height='28' align='center' class="f-13-ffffff">
				备注
				</th>
</tr>
	<logic:iterate id="spricemes" name="spricemess">
	<tr  id='${spricemes.index}' >
			<td  height="28" align="center"  style='width:240px' style="font-size:12px">

				${spricemes.prod_name }
			</td>
			
			<td  height="28"  align="center" style='width:100px' style="font-size:12px">
					${spricemes.spe }
			</td>
			<td style='width:140px' height="28"  align="center" style="font-size:12px">
					${spricemes.message }
			</td>
			
				<td style='width:80px' align="center" style="font-size:12px">
					${spricemes.prod_quantity }
				</td>
				<td style='width:80px' align="center" style="font-size:12px">
					${spricemes.prod_unit }
				</td>

				<logic:equal value="1" name="pricemode">
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.cata_unit_price }
					</td>
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.discount }
					</td>
					<td style='width:180px' height="28" align="center" style="font-size:12px">
						${spricemes.discounted_unit_price }
					</td>
					<td style='width:180px' align="center" style="font-size:12px">
						${spricemes.discounted_amount }
					</td>
					<td style='width:160px' align="center" style="font-size:12px" >
						${spricemes.valid_date }
					</td>
					<td style='width:160px' align="center" style="font-size:12px">

						${spricemes.unvalid_date }
					</td>
				</logic:equal>
				
				<logic:equal value="3" name="pricemode">
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.cata_unit_price }
					</td>
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.discount }
					</td>
					<td  height="28" align="center" style='width:180px' style="font-size:12px">
						${spricemes.discounted_unit_price }
					</td>
					<td style='width:160px' align="center" >
						${spricemes.discounted_amount }
					</td>
				</logic:equal>
				
				
					<td style='width:250px' height='28' align='center' style="font-size:12px">
						${spricemes.memo }
					</td>
			  </tr>
	</logic:iterate>
</table>

<!-- 付款总计 -->
<table style="margin-top:40px">
<tr>
<td>
	<font style="font-size:12px;color:red">总计：${totalmoney }￥</font>
</td>
</tr>
</table>

<!-- 付款说明 -->
<table style="width:610px" border="0" cellpadding="0" cellspacing="0">

		<tr>
				<td><font style="font-size:12px;color:red">付款方式:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="paymode">${other.paymode }</textarea>
				</td>
				
				<td><font style="font-size:12px;color:red">供货期:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="supplierstage">${other.supplierstage}</textarea>
				</td>
		</tr>

		<tr>
				<td><font style="font-size:12px;color:red">税率说明:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="faxmessage">${other.faxmessage}</textarea>
				</td>
				
				
				<td><font style="font-size:12px;color:red">其他说明:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="othermessage">${other.othermessage}</textarea>
				</td>
		</tr>
</table>
</logic:notEqual>


<!-- 招标方式展现的界面 -->
<logic:equal value="1" name="suggestmode">
<logic:iterate id="spricemess" name="spricemesses">
<table <logic:notEqual value="true" name="spricemess" property="isShowPrice">style='margin-top:20px'</logic:notEqual>>
<tr>
<td width='120px'>
<span style="font-weight:bold;font-size:14px">供应商:${spricemess.suppliername}</span>
</td>

<td width='120px' align='center'>
<font style="font-size:12px;color:red">总计：${spricemess.total_money }￥</font>
</td>
</tr>
</table>
<logic:equal value="true" name="spricemess" property="isShowPrice">
<table style="width:1200px"   id="pricetable"  border="0" cellpadding="0" cellspacing="1" style="border-style:solid;border-width:1px;">	
	<thead>
		<tr class="th_bj" valign='middle'>
			<th style='width:240px' height="28" align="center" class="f-13-ffffff">
											产品/服务名称
			</th>
			
			<th style='width:100px' height="28" colspan="-3" align="center">
					<span class="f-13-ffffff">规格</span>
			</th>
			<th style='width:140px' height="28" colspan="-3" align="center">
					<span class="f-13-ffffff">有关说明</span>
			</th>
			
				<th style='width:100px' align="center" class="f-13-ffffff">
					数量
				</th>
				<th style='width:100px' align="center" class="f-13-ffffff">
					单位
				</th>

				<logic:equal value="1" name="pricemode">
					<th style='width:200px' height="28" align="center">
						<span class="f-13-ffffff">目录单价(元)</span>
					</th>
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">正扣折扣率</span>
					</th>
					<th style='width:200px' height="28" align="center" class="f-13-ffffff">
						折扣后单价(元)
					</th>
					<th style='width:200px' align="center" class="f-13-ffffff">
						折扣后总价(元)
					</th>
					<th style='width:160px' align="center" class="f-13-ffffff">
						生效日期
					</th>
					<th style='width:160px' align="center" class="f-13-ffffff">

						失效日期
					</th>
				</logic:equal>
				
				<logic:equal value="3" name="pricemode">
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">单价(元)</span>
					</th>
					<th style='width:160px' height="28" align="center">
						<span class="f-13-ffffff">正扣折扣率</span>
					</th>
					<th style='width:180px' height="28" align="center" class="f-13-ffffff">
						折扣后单价(元)
					</th>
					<th style='width:180px' align="center" class="f-13-ffffff">
						折扣后总价(元)
					</th>
				</logic:equal>
				
				
				<th style='width:160px' height='28' align='center' class="f-13-ffffff">
				备注
				</th>
</tr>
	<logic:iterate id="spricemes" name="spricemess" property="supplierprice">
	<tr  id='${spricemes.index}' >
			<td  height="28" align="center"  style='width:240px' style="font-size:12px">

				${spricemes.prod_name }
			</td>
			
			<td  height="28"  align="center" style='width:100px' style="font-size:12px">
					${spricemes.spe }
			</td>
			<td style='width:140px' height="28"  align="center" style="font-size:12px">
					${spricemes.message }
			</td>
			
				<td style='width:80px' align="center" style="font-size:12px">
					${spricemes.prod_quantity }
				</td>
				<td style='width:80px' align="center" style="font-size:12px">
					${spricemes.prod_unit }
				</td>

				<logic:equal value="1" name="pricemode">
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.cata_unit_price }
					</td>
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.discount }
					</td>
					<td style='width:180px' height="28" align="center" style="font-size:12px">
						${spricemes.discounted_unit_price }
					</td>
					<td style='width:180px' align="center" style="font-size:12px">
						${spricemes.discounted_amount }
					</td>
					<td style='width:160px' align="center" style="font-size:12px" >
						${spricemes.valid_date }
					</td>
					<td style='width:160px' align="center" style="font-size:12px">

						${spricemes.unvalid_date }
					</td>
				</logic:equal>
				
				<logic:equal value="3" name="pricemode">
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.cata_unit_price }
					</td>
					<td style='width:160px' height="28" align="center" style="font-size:12px">
						${spricemes.discount }
					</td>
					<td  height="28" align="center" style='width:180px' style="font-size:12px">
						${spricemes.discounted_unit_price }
					</td>
					<td style='width:160px' align="center" >
						${spricemes.discounted_amount }
					</td>
				</logic:equal>
				
				
					<td style='width:250px' height='28' align='center' style="font-size:12px">
						${spricemes.memo }
					</td>
			  </tr>
	</logic:iterate>
</table>
</logic:equal>



<bean:define id="other" name="spricemess" property="ipf"></bean:define>
<logic:equal value="true" name="spricemess.isShowPrice">
<!-- 付款说明 -->
<table style="width:610px" border="0" cellpadding="0" cellspacing="0">

		<tr>
				<td><font style="font-size:12px;color:red">付款方式:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="paymode">${other.paymode }</textarea>
				</td>
				
				<td><font style="font-size:12px;color:red">供货期:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="supplierstage">${other.supplierstage}</textarea>
				</td>
		</tr>

		<tr>
				<td><font style="font-size:12px;color:red">税率说明:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="faxmessage">${other.faxmessage}</textarea>
				</td>
				
				
				<td><font style="font-size:12px;color:red">其他说明:</font></td>
				
				<td>
						<textarea rows="5" cols="20"  name="othermessage">${other.othermessage}</textarea>
				</td>
		</tr>
</table>
</logic:equal>
</logic:iterate>
</logic:equal>
	
	</body>
</html>


